<HTML>
<HEAD>
<TITLE>func_clock, JavaScript</TITLE>
<SCRIPT type="text/javascript">
function func_c() {
	document.getElementById('now').innerHTML += "Function C<br>"
	for (i = 0; i < 30000; i++) {
		j = i + 1
	}
}

function func_b() {
	document.getElementById('now').innerHTML += "Function B<br>"
	for (i = 0; i < 20000; i++) {
		j = i + 1
	}
	func_c()
}

function func_a() {
	document.getElementById('now').innerHTML += "Function A<br>"
	for (i = 0; i < 10000; i++) {
		j = i + 1
	}
	func_b()
}

function start() {
	now = new Date()
	document.getElementById('now').innerHTML = now + "<br>"
	func_a()
	var timeout = setTimeout('start()', 1000)
}
</SCRIPT>
</HEAD>
<BODY onload="start()">
<DIV id="now"></DIV>
</BODY>
</HTML>
